package org.lq.his.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.lq.his.dao.AllergyDao;
import org.lq.his.pojo.Allergy;

public interface AllergyService {
	
	//查询所有过敏史
	public List<Allergy> getAll();
	
	//分页查询所有过敏史
	public List<Allergy> getListByCondition(@Param("start") int start,@Param("limit") int limit,@Param("condition") Allergy condition,@Param("column") String column,@Param("orderBy") String orderBy);
	
	//查询条数
	public Integer getCountByCondition(@Param("condition") Allergy condition);

	//添加过敏史
	public void add(Allergy allergy);
	
	//修改过敏史
	public void update(Allergy allergy);
	
	//根据id查询
	public Allergy getById(Integer id);
	
	//修改过敏史状态
	public void deleteByIds(Integer[] ids);
	
}
